package service

import (
	"gin-chat/entity"
	"gin-chat/models"
	"gin-chat/pkg"
)

func UserInfoByUUID(uuid int) (fromUUID entity.CUser, code int) {
	mgr := models.CUserMgr()
	fromUUID, err := mgr.GetFromUUID(uuid)
	if err != nil {
		code = pkg.InvalidParams
		return
	}
	return
}
